﻿package net.wangit.application;

import net.wangit.context.ActionContext;
import net.wangit.context.ActionContextHelper;
import net.wangit.context.ActionContextImpl;
import net.wangit.framework.action.OutActionResult;
import net.wangit.support.Action;

public class WindowCloseAction implements Action {

	public WindowCloseAction() {
	}

	public ActionContext execute(ActionContext ac) throws Exception {
		ActionContextHelper.clearSession(ac);
		((ActionContextImpl) ac).setActionResult(new OutActionResult());
		return ac;
	}
}
